package com.hulushuju.core.net.http.callback;

import com.hulushuju.core.net.http.HttpRequest;
import com.hulushuju.core.net.http.HttpResponse;

/**
 * @Author: Hanjiafeng
 * @Date: 2019-05-29
 * @Desc: 回调接口
 */
public interface HttpCallback {

    void success(HttpRequest httpRequest, HttpResponse httpResponse);

    void failure(HttpRequest httpRequest, Exception exception);
}
